﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;
using Goldlight.SampleApplication.LanguageResources;

namespace Goldlight.SampleApplication.ViewModels
{
    public class CountryValidation : ValidationRule
    {
        public override ValidationResult Validate(object value, System.Globalization.CultureInfo cultureInfo)
        {
            if (value is ComboBoxItem)
                return new ValidationResult(false, Language.InvalidSelection);
            return new ValidationResult(true, null);
        }
    }
}
